﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bdcs.Core.Entity
{
    /// <summary>
    /// ZInput003数据模型对象
    /// </summary>
    [Serializable]
    public partial class ZInput003Mod
    {
        /// <summary>
        /// 初始化ZInput003数据模型对象
        /// </summary>
        public ZInput003Mod()
        {
            
        }
        /// <summary>
        /// 初始化ZInput003数据模型对象并给所有字段赋值
        /// </summary>
        /// <param name="time">time</param>
        /// <param name="loc">loc</param>
        /// <param name="lati">lati</param>
        /// <param name="longi">longi</param>
        /// <param name="speed">speed</param>
        /// <param name="orient">orient</param>
        /// <param name="date">date</param>
        public ZInput003Mod(string time,string loc,string lati,string longi,string speed,string orient,string date)
        {
            //给time字段赋值
            this.Time = time;
            //给loc字段赋值
            this.Loc = loc;
            //给lati字段赋值
            this.Lati = lati;
            //给longi字段赋值
            this.Longi = longi;
            //给speed字段赋值
            this.Speed = speed;
            //给orient字段赋值
            this.Orient = orient;
            //给date字段赋值
            this.Date = date;
        }
        
		//属性存储数据的变量
        private string _time;
        private string _loc;
        private string _lati;
        private string _longi;
        private string _speed;
        private string _orient;
        private string _date;
        
        /// <summary>
        /// time
        /// </summary>
        public string Time
        {
            get { return this._time; }
            set { this._time = value; }
        }
        /// <summary>
        /// loc
        /// </summary>
        public string Loc
        {
            get { return this._loc; }
            set { this._loc = value; }
        }
        /// <summary>
        /// lati
        /// </summary>
        public string Lati
        {
            get { return this._lati; }
            set { this._lati = value; }
        }
        /// <summary>
        /// longi
        /// </summary>
        public string Longi
        {
            get { return this._longi; }
            set { this._longi = value; }
        }
        /// <summary>
        /// speed
        /// </summary>
        public string Speed
        {
            get { return this._speed; }
            set { this._speed = value; }
        }
        /// <summary>
        /// orient
        /// </summary>
        public string Orient
        {
            get { return this._orient; }
            set { this._orient = value; }
        }
        /// <summary>
        /// date
        /// </summary>
        public string Date
        {
            get { return this._date; }
            set { this._date = value; }
        }
        
        /// <summary>
        /// 对比两个ZInput003数据模型对象是否一致
        /// </summary>
        /// <param name="obj">要进行比对的ZInput003数据模型对象</param>
        /// <returns>返回是否一致，为true一致，为false不一致</returns>
        public override bool Equals(object obj)
        {
            //判断传入对象是否为null
            if (obj == null) return false;
            //将传入对象转换成ZInput003数据模型对象
            ZInput003Mod zInput003Mod = obj as ZInput003Mod;
            //判断是否转换成功
            if (zInput003Mod == null) return false;
            //进行匹配属性的值
            return
                //判断time是否一致
                this.Time == zInput003Mod.Time &&
                //判断loc是否一致
                this.Loc == zInput003Mod.Loc &&
                //判断lati是否一致
                this.Lati == zInput003Mod.Lati &&
                //判断longi是否一致
                this.Longi == zInput003Mod.Longi &&
                //判断speed是否一致
                this.Speed == zInput003Mod.Speed &&
                //判断orient是否一致
                this.Orient == zInput003Mod.Orient &&
                //判断date是否一致
                this.Date == zInput003Mod.Date;
        }
        /// <summary>
        /// 将当前ZInput003数据模型对象转换成哈希码
        /// </summary>
        /// <returns>哈希值</returns>
        public override int GetHashCode()
        {
            //将ZInput003数据模型对象的属性进行按位异或运算处理得到哈希码并返回
            return
                //将time进行按位异或运算处理
                (this.Time == null ? 2147483647 : this.Time.GetHashCode()) ^
                //将loc进行按位异或运算处理
                (this.Loc == null ? 2147483647 : this.Loc.GetHashCode()) ^
                //将lati进行按位异或运算处理
                (this.Lati == null ? 2147483647 : this.Lati.GetHashCode()) ^
                //将longi进行按位异或运算处理
                (this.Longi == null ? 2147483647 : this.Longi.GetHashCode()) ^
                //将speed进行按位异或运算处理
                (this.Speed == null ? 2147483647 : this.Speed.GetHashCode()) ^
                //将orient进行按位异或运算处理
                (this.Orient == null ? 2147483647 : this.Orient.GetHashCode()) ^
                //将date进行按位异或运算处理
                (this.Date == null ? 2147483647 : this.Date.GetHashCode());
        }
        /// <summary>
        /// 将当前ZInput003数据模型对象转换成字符串副本【仅显示在SQL中不能为空的列】
        /// </summary>
        /// <returns>字符串形式副本</returns>
        public override string ToString()
        {
            //将当前ZInput003数据模型对象转换成字符串副本
            return
                "[" +
                "]";
        }
    }
}
